import request from "@/axios";

// 卖家中心,销售线路订单列表
export const getproviderlineorderpage = option =>
  request({
    url: "/api/order/getproviderlineorderpage",
    method: "post",
    data: option
  });

// 买家中心,采购线路订单列表
export const getcustomerlineorderpage = option =>
  request({
    url: "/api/order/getcustomerlineorderpage",
    method: "post",
    data: option
  });

// // 卖家中心,销售线路订单详情
// export const getproviderlineorderdetail = option =>
//   request({
//     url: "/api/order/getproviderlineorderdetail",
//     method: "get",
//     params: option
//   });

// // 买家中心,采购线路订单详情
// export const getcustomerlineorderdetail = option =>
//   request({
//     url: "/api/order/getcustomerlineorderdetail",
//     method: "get",
//     params: option
//   });

// 线路订单详情
export const getlineorderdetail = option =>
  request({
    url: "/api/order/getlineorderdetail",
    method: "get",
    params: option
  });

// 买家备注线路订单
export const customerremarklineorder = option =>
  request({
    url: "/api/order/customerremarklineorder",
    method: "post",
    data: option
  });

// 卖家备注线路订单
export const providerremarklineorder = option =>
  request({
    url: "/api/order/providerremarklineorder",
    method: "post",
    data: option
  });

// 卖家申请修改订单
export const providerapplyalterlineorder = option =>
  request({
    url: "/api/order/providerapplyalterlineorder",
    method: "post",
    data: option
  });

// 卖家申请修改升贴水
export const providerapplyalterlineorderpremium = option =>
  request({
    url: "/api/order/providerapplyalterlineorderpremium",
    method: "post",
    data: option
  });

// 买家同意卖家修改线路订单申请
export const customeracceptalterlineorder = option =>
  request({
    url: "/api/order/customeracceptalterlineorder",
    method: "post",
    data: option
  });

// 买家拒绝修改订单申请
export const customerrejectalterlineorder = option =>
  request({
    url: "/api/order/customerrejectalterlineorder",
    method: "post",
    data: option
  });

// 买家同意修改线升贴水申请
export const customeracceptalterlineorderpremium = option =>
  request({
    url: "/api/order/customeracceptalterlineorderpremium",
    method: "post",
    data: option
  });

// 买家拒绝修改升贴水申请
export const customerrejectalterlineorderpremium = option =>
  request({
    url: "/api/order/customerrejectalterlineorderpremium",
    method: "post",
    data: option
  });

// 线路订单日志
export const getlineorderlog = option =>
  request({
    url: "/api/order/getlineorderlog",
    method: "get",
    params: option
  });

// 卖家申请修改点价基价
export const providerapplyalterlineorderbaseprice = option =>
  request({
    url: "/api/order/providerapplyalterlineorderbaseprice",
    method: "post",
    data: option
  });

// 卖家申请修改确定价价格
export const providerapplyalterlineorderfirmprice = option =>
  request({
    url: "/api/order/providerapplyalterlineorderfirmprice",
    method: "post",
    data: option
  });

// 买家同意修改确定价价格
export const customeracceptalterlineorderfirmprice = option =>
  request({
    url: "/api/order/customeracceptalterlineorderfirmprice",
    method: "post",
    data: option
  });

// 买家拒绝修改确定价价格
export const customerrejectalterlineorderfirmprice = option =>
  request({
    url: "/api/order/customerrejectalterlineorderfirmprice",
    method: "post",
    data: option
  });

// 买家同意修改点价基价
export const customeracceptalterlineorderbaseprice = option =>
  request({
    url: "/api/order/customeracceptalterlineorderbaseprice",
    method: "post",
    data: option
  });

// 买家拒绝修改点价基价
export const customerrejectalterlineorderbaseprice = option =>
  request({
    url: "/api/order/customerrejectalterlineorderbaseprice",
    method: "post",
    data: option
  });
